package cn.jbit.pojo;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Student implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Integer id; //学号
	private String name; //姓名
	private boolean sex; //性别
	//@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date bornDate; //出生日期
	
	public Student() {
		
	}
	
	

	public Student(Integer id, String name, boolean sex, Date bornDate) {
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.bornDate = bornDate;
	}



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isSex() {
		return sex;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}

	public Date getBornDate() {
		return bornDate;
	}

	public void setBornDate(Date bornDate) {
		this.bornDate = bornDate;
	}



	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", sex=" + sex + ", bornDate=" + bornDate + "]";
	}
	
	
}
